const path = require('path');

function resolve(dir) {
    return path.join(__dirname, dir);
}
module.exports = {
    lintOnSave: true,
    chainWebpack: (config) => {
        config.resolve.alias
            .set('@', resolve('src'))
            // 需要重启 IDE
            .set('styles',resolve('src/assets/styles'))
            .set('img',resolve('src/assets/img'))
            .set('components',resolve('src/components'))
            .set('views',resolve('src/views'))
    }
};